import {
  Component,
  ChangeDetectionStrategy,
  ViewEncapsulation,
  Optional,
  Input,
} from '@angular/core'

@Component({
  selector: 'ad-tree-node-name',
  template: `{{ name }}`,
  changeDetection: ChangeDetectionStrategy.OnPush,
  encapsulation: ViewEncapsulation.None,
  host: {
    '[class.ad-tree-node-name]': 'true',
    '[attr.title]': 'name',
  },
})
export class AdTreeNodeName {
  @Input() name: string
}
